Ext.require([
    'AM.component.menu.MenuItemFactory',
    'AM.service.Thumbnails',
    'AM.data.InitConfig',
    'AM.service.WorkSpace'
])


Ext.define('AM.component.Page', {

    extend:'Ext.container.Container',
    xtype:'xbxPage',
    autoEl:'section',


    constructor:function (config, xbxConfig) {
        var me = this;

        me.callParent(arguments);
        me.initConfig(config)

        me.addListener('render', function () {
            if (!Ext.isEmpty(xbxConfig))
                AM.data.InitConfig.page(me, xbxConfig);
            var sp = AM.service.Support;
            sp.contextmenu(me);
            sp.drop(me);
            sp.dropRemoteImg(me);
           sp.cacheCmp(me);
            sp.animShow(me);
        })
        AM.service.WorkSpace.addPage(me);
    },


    style:{
        position:'relative',
        backgroundColor:'#fff'
    },


    config:{
        animName:'leftRight',
        cutOverAudioName:null
    }





})